/// Will throw this error when access uri which returns http status code 400.
class BadRequestException implements Exception {
  BadRequestException(this.message);

  final String message;

  @override
  String toString() => 'Bad request: $message';
}

class BadRequestError extends Error {
  BadRequestError(this.message);

  final String message;

  @override
  String toString() => 'Bad request: $message';
}

/// Will throw this error when access uri which returns http status code 401.
class UnauthorizedError extends Error {
  UnauthorizedError(this.message);

  final String message;

  @override
  String toString() => 'Unauthorized: $message';
}

/// Will throw this error when access uri which returns http status code 403.
class ForbiddenError extends Error {
  ForbiddenError(this.message);

  final String message;

  @override
  String toString() => 'Unauthorized: $message';
}
